<?php
class ShowAction extends Action {
	function index() {
		$Content = M("Content");
		$tocontent = $Content->where('content_id='.$_GET['id'] .' AND content_state=1')->find();
		$tocontent['content_text']=str_replace('/Public/', C('WWW').'Public/',$tocontent['content_text']);
		if ($tocontent != NULL) {
			$this->assign('content',$tocontent);
			$this->display();
		}else{
			$this->assign('waitSecond',5);
			$this->assign('jumpUrl','index');
			$this->error('This Article isn\'t exits!');
		}
	}
}
?>